@extends('layout.admin')
@section("content")

    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="panel-body">
            <form role="form" method="post" action="/admin/serve/save" enctype="multipart/form-data">
                <div class="row">
                    <div class="col-md-2"><label class="control-label">标题:</label></div>
                    <div class="col-md-4">
                        <input type="text" name="title" value="<?php echo isset($serve->title)?$serve->title:'';?>" class="form-control" placeholder="标题">
                    </div>
                </div>

                <br/>
                <div class="row">
                    <div class="col-md-2"><label class="control-label">描述:</label></div>
                    <div class="col-md-4">
                        <input type="text" name="desc" value="<?php echo isset($serve->desc)?$serve->desc:'';?>" class="form-control" placeholder="描述">
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="col-md-2"><label class="control-label">图片:</label></div>
                    <div class="col-md-4">
                        <input type="file" name="imgs[]" value="" placeholder="图片">
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="col-md-2"><label class="control-label">图片:</label></div>
                    <div class="col-md-4">
                        <input type="file" name="imgs[]" value="" placeholder="图片">
                    </div>
                </div>
                <br/>


                <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                <input type="hidden" name="id" value="<?php echo isset($serve->id)?$serve->id:0;?>">
                <div class="row" style="text-align: center;margin-top: 10px;">
                    <button type="submit" class="btn btn-primary btn-lg">保存</button>
                </div>
            </form>
        </div>
    </div>

@endsection
